From 0c186c667431b06c9991ad61e5e937aeddbb13d8 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 25 Jan 2009 10:12:38 +0000 Subject: [PATCH] x86: Fix memory_is_conventional_ram() e820 entry size check. Thanks to Joe Cihula for spotting this. Signed-off-by: Keir Fraser --- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 7b04ae5c97..b4d8a8792a 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -298,7 +298,7 @@ int memory_is_conventional_ram(paddr_t p) { if ( (e820.map[i].type == E820_RAM) && (e820.map[i].addr <= p) && - (e820.map[i].size > p) ) + ((e820.map[i].addr + e820.map[i].size) > p) ) return 1; } -- 2.30.2